.map-container {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-content {
  width: 100%;
  height: 100%;
}

.map-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  z-index: 10;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e3e3e3;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.map-loading p {
  color: #666;
  font-size: 14px;
  margin: 0;
}

.map-error {
  width: 100%;
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  text-align: center;
  padding: 20px;
}

.map-error-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.map-error p {
  margin: 8px 0;
  color: #666;
}

.map-error-address {
  font-weight: 500;
  color: #333 !important;
}

.map-error-tip {
  font-size: 12px;
  color: #999 !important;
}

.api-key-help {
  margin-top: 16px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 6px;
  text-align: left;
  font-size: 12px;
}

.api-key-help p {
  margin: 0 0 8px 0;
  font-weight: 500;
  color: #333;
}

.api-key-help ol {
  margin: 0;
  padding-left: 16px;
}

.api-key-help li {
  margin: 4px 0;
  color: #666;
}

.api-key-help a {
  color: #007bff;
  text-decoration: none;
}

.api-key-help a:hover {
  text-decoration: underline;
}

.api-key-current {
  margin-top: 12px;
  padding: 8px;
  background: #e3f2fd;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: #1976d2;
  border-left: 3px solid #2196f3;
}

/* 自定义标记样式 */
.custom-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 2px solid #007bff;
}

.marker-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.marker-text {
  font-size: 12px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
}

/* 信息窗体样式 */
.info-window {
  padding: 12px;
  min-width: 200px;
}

.info-window h4 {
  margin: 0 0 8px 0;
  color: #333;
  font-size: 14px;
  font-weight: 600;
}

.info-window p {
  margin: 4px 0;
  color: #666;
  font-size: 12px;
  line-height: 1.4;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .map-container {
    height: 300px;
  }
  
  .map-error {
    height: 300px;
    padding: 16px;
  }
  
  .map-error-icon {
    font-size: 36px;
  }
  
  .custom-marker {
    padding: 6px;
  }
  
  .marker-icon {
    font-size: 20px;
  }
  
  .marker-text {
    font-size: 11px;
  }
}
